package com.example.stlink.fragments;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;

import com.example.stlink.R;

public class CourseClassListFragment extends Fragment {

    private static AppCompatActivity originalActivity;


    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_course_class_list, container, false);
        initView(view);
        return view;
    }

    /**
     * 堆外暴露的一个方法，用于获取该碎片实例
     * @param str 说明
     * @param appCompatActivity 上下文
     * @return 未结课的碎片实例
     */
    public static CourseClassListFragment newInstance(String str, AppCompatActivity appCompatActivity){
        CourseClassListFragment courseClassListFragment = new CourseClassListFragment();
        originalActivity = appCompatActivity;
        return courseClassListFragment;
    }


    /**
     * 绑定控件，初始化实例等
     * @param view 当前视图
     */
    private void initView(View view) {

    }
}
